package cn.edu.lcu.cs.javaprogramming.oop.animal;

/**
 * 蝙蝠类
 * 2022/3/11 16:28
 *
 * @Author by ling
 */

public class Bat extends Mammal implements Flyable {
    public Bat() {
        setSpeciesName("蝙蝠");
    }

    @Override
    public void reproduce() {
        System.out.println("蝙蝠是胎生的。");
    }

    @Override
    public void eat() {
        System.out.println("蝙蝠吃虫子");
    }

    @Override
    public void fly() {
        System.out.println("蝙蝠可以在黑暗中飞行");
    }
}
